package presentation.view_helpers;

import org.junit.Before;
import org.junit.Test;

public class SubscriptionDetailsTest {
	
	@Before
	public void setUp() {
		//TODO:
		//create List of some Subscriptions
		//Get Test-Impl of SubscriptionDAO from DAOFactoryTestImpl
		//inject it in SubscriptionBean
	}

	@Test
	public void testGetNextSubscriptionID() {
		//TODO: 		
		//set current Subscription
		//check if getNextSubscriptionID equals id of the next Subscription in the list
	}
	@Test
	public void testGetPreviousSubscriptionID() {
		//TODO: 
		//set current Subscription
		//check if getPreviousSubscriptionID equals id of the previous Subscription in the list
	}
	
	@Test
	public void testGetLettersForSubscriptionsPeriodicalTitle() {
		//TODO:
		//create List with first letter for every title, if letter not yet present
		//check if this list matches the return value of getLettersForSubscriptionsPeriodicalTitle
	}
	
	@Test void getAllSubscriptionsWithTitle() {
		
	}
	
}
